home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Christina Milan AM to PM
/
Christina Milan - AM to PM.iso
/
christin.dir
/
00016_Script_Go to URL
< prev
next >
Wrap
Text File
|
2001-08-09
|
2KB
|
66 lines
-- DESCRIPTION --
on getBehaviorDescription me
return "¼
GO TO URL"&RETURN&RETURN&"¼
Drop this behavior onto a Sprite, the Stage or into the Script Channel of ¼
the Score to load the designated HTML Page."&¼
RETURN&RETURN&"¼
If you drop it onto a graphic member, the 'gotoNetPage' command ¼
is sent when the user clicks on the sprite (on mouseUp)."&RETURN&RETURN&"¼
If you drop it onto the Stage or the Script Channel of the Score, ¼
it will be sent when the playback head leaves the frame (on exitFrame)."&¼
RETURN&RETURN&"¼
When called from a Shockwave movie, this behavior replaces the current page ¼
displayed in the web browser. When called from a projector or in authoring ¼
mode, it opens a browser to display the requested page."&RETURN&RETURN&"¼
PARAMETERS:"&RETURN&"¼
* Destination URL - Enter the complete URL of the destination page. Include http://"
end getBehaviorDescription
on getBehaviorTooltip me
return "¼
Use with graphic members or as a frame behavior."&RETURN&RETURN&"¼
When called from a Shockwave movie, this behavior"&RETURN&"¼
replaces the current page displayed in the web"&RETURN&"¼
browser. When called from a projector or in"&RETURN&"¼
authoring mode, it opens a browser to display"&RETURN&"¼
the requested page."&RETURN&RETURN&"¼
Acts on mouseUp or on exitFrame, depending on"&RETURN&"¼
whether you drag it to a sprite or to the Stage."
end getBehaviorTooltip
-- HISTORY --
-- 12 November 1998, written for the D7 Behaviors Palette by James Newton
property myURL
on mouseUp me
-- The user clicked on a sprite
gotoNetPage myURL
end mouseUp
on exitFrame me
if the currentspriteNum = 0 then
-- The behavior is attached to a frame
gotoNetPage myURL
end if
end exitFrame
on getPropertyDescriptionList
return ¼
[ ¼
#myURL: ¼
[ ¼
#comment: "Destination URL:", ¼
#format: #string, ¼
#default: "http://www.macromedia.com " ¼
] ¼
]
end getPropertyDescriptionList